package cc.lj.internal.payment.infrastructure.repository;

import cc.lj.internal.payment.domain.pay.repository.IPayFormListRepository;
import cc.lj.internal.payment.infrastructure.po.PayformListPO;
import cc.lj.internal.payment.infrastructure.repository.mysql.PayFormListMysqlRespository;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;


/**
 * 现金+电子券表仓储实现
 * @author liangxifeng
 * @date 2021-12-11
 */
@Repository("payFromListRepository")
public class PayFromListRepository implements IPayFormListRepository {
    @Resource(name="payFormListMysqlRespository")
    private PayFormListMysqlRespository repository;


    @Override
    public Integer updateById(PayformListPO entityPO) {
        return repository.updateById(entityPO);
    }

    @Override
    public List<PayformListPO> getList(PayformListPO entityPO) {
        return repository.getList(entityPO);
    }

    @Override
    public Integer insert(PayformListPO PayformListPO) {
        return repository.insert(PayformListPO);
    }
}
